import http from '@/utils/http';

export default{
    // getList:(): Promise<Array<Vm.Student>> => http<null,Array<Vm.Student>>({url:"/student/list",method: "post"}),
    getList:(data: HttpPayload.GetStudent): Promise<Vm.StudentData> => http<HttpPayload.GetStudent,Vm.StudentData>({url:"/student/list",method: "post", data}),
    add:(data:Vm.Student): Promise<number> => http<Vm.Student,number>({url:"/student/add",method:"post",data}),
    update:(data: Vm.Student): Promise<null> => http<Vm.Student,null>({url:"/student/update",method:"post",data}),
    avatarUpdate:(data: HttpPayload.StudentAvatarUpdate): Promise<null> => http< HttpPayload.StudentAvatarUpdate,null>({url:"/student/avatarupdate",method:"post",data}),
    assignclass:(data:HttpPayload.StudentAssignclass): Promise<null> => http<HttpPayload.StudentAssignclass,null>({url:"/student/assignclass",method:"post",data})
}